#pragma once

#include <QGraphicsView>
#include <QGraphicsSvgItem>
class DefaultSvgGraphicsView : public QGraphicsView
{
	Q_OBJECT

public:
	DefaultSvgGraphicsView(QString svfFileName=QString(),QWidget *parent=nullptr);
	~DefaultSvgGraphicsView();
public:
	void SetSvgFileName(QString fileName);
protected:
	void showEvent(QShowEvent* event);
	void wheelEvent(QWheelEvent* event);
private:
	void Init();
private:
	QGraphicsScene* m_scene;
	QGraphicsSvgItem* m_svgItem;
	QString m_svgFileName;
};
